<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>AMMINISTRATORE</title>
<link href="../layout.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="../js/DropDownMenuX.js"></script>
<style type="text/css">
<!--
.style1 {color: #CCCCCC}
-->
</style>
</head>
 <%! String user = "";
 	 String nome = "";
 	 String cogn = "";
  %>
  
 <%  
		
	if (session.getAttribute("user")==null)
	{
		response.sendRedirect("loginerr.jsp");
	}
	
	else
	{

	user = session.getAttribute("user").toString();
	String type = session.getAttribute("type").toString();
	String matr = session.getAttribute("matricola").toString();
	nome = session.getAttribute("nome").toString();
	cogn = session.getAttribute("cognome").toString();
	}
%>

<script type="text/javascript">
	function log_out()
	{
		alert("Arrivederci!");
		document.logout.submit();
	}
	
	function renumber()
	{
		document.renumber.submit();
		document.logout.submit();
	}
</script>

<body>
<table cellspacing="0" cellpadding="0" id="menu1" class="ddmx">
    <tr>
        <td>
            <a class="item1" href="javascript:void(0)">Account</a>
            <div class="section">
                <a class="item2" href="../hom/account.jsp">Gestione</a>
                <a class="item2 arrow" href="javascript:log_out()">Log Out</a>
            </div>
        </td>
        
        <td>
            <a class="item1" href="javascript:void(0)">Dipendenti</a>
            <div class="section">
                <a class="item2" href="dip/elenco_dipendenti.jsp?order=1">Visualizza elenco</a>
                <a class="item2 arrow" href="dip/gestione_dipendente.jsp">Gestione dipendente</a>
                <a class="item2 arrow" href="dip/gestione_account.jsp">Gestione account dipendente</a>
                <a class="item2 arrow" href="dip/nuovo_dipendente.jsp">Nuovo dipendente</a>
            </div>
        </td>
        
        <td>
            <a class="item1" href="javascript:void(0)">Gruppi di lavoro</a>
            <div class="section">
                <a class="item2" href="gdl/gestione_gdl.jsp">Gestione Gruppi</a>
                <a class="item2 arrow" href="gdl/nuovo_gdl.jsp">Inserisci gruppo</a>
            </div>
        </td>
        
        <td>
            <a class="item1" href="javascript:void(0)">Gestione Beni</a>
            <div class="section">
                <a class="item2" href="ben/elenco_beni_inventariati.jsp?order=1">Elenco beni</a>
                <a class="item2" href="ben/elenco_beni_liberi.jsp?order=1">Visualizza beni liberi</a>
                <a class="item2" href="ben/ins_bene.jsp?new=1">Nuovo Bene</a>
                <a class="item2" href="javascript:renumber()">Rinumera seriali</a>
                <a class="item2" href="javascript:void(0)">---------------</a>
                <a class="item2 arrow" href="javascript:void(0)">Gestione<img src="../images/arrow1.gif" width="10" height="12" alt="" /></a>
                <div class="section">
                    <a class="item2" href="ben/select_bene.jsp?order=1">Beni</a>
                    <a class="item2" href="ben/select_cat.jsp?order=1">Categorie</a>
                    <a class="item2" href="ben/select_subcat.jsp?order=1&pick=0">Sottocategorie</a>
                    <a class="item2" href="ben/select_for.jsp?order=1">Fornitori</a>
                </div>
            </div>
        </td>
       
        <td>
            <a class="item1" href="javascript:void(0)">Assegnazioni Beni SA</a>
            <div class="section">
                <a class="item2" href="rabSA/elenco_ric.jsp?order=1">Elenco Richieste </a>
                <a class="item2" href="rabSA/elenco_ricDip.jsp?order=1">Elenco Richieste Dipendente</a>
                <a class="item2 arrow" href="javascript:void(0)">Effettua assegnazione<img src="../images/arrow1.gif" width="10" height="12" alt="" /></a>
                <div class="section">
                    <a class="item2" href="rabSA/elenco_dip.jsp">a diepndente</a>
                    <a class="item2" href="rabSA/elenco_gdl.jsp">a gruppo di lavoro</a>
                </div>    
                <a class="item2" href="rabSA/gestione_assdip.jsp">Assegnazioni a dipendente</a>
                <a class="item2" href="rabSA/gestione_assgdl.jsp">Assegnazioni a G.D.L.</a>
                <a class="item2" href="rabSA/gestione_ubicazione.jsp">Ubicazione beni in satanza</a>
            </div>
        </td>
        <td>
            <a class="item1" href="javascript:void(0)">Statistiche</a>
            <div class="section">
                <a class="item2" href="rsa/gestione_statistica1.jsp">Elenco bandi di finanziamento</a>
                <a class="item2 arrow" href="logout">Elenco Forniture<img src="../images/arrow1.gif" width="10" height="12" alt="" /></a>
                <div class="section">
                    <a class="item2" href="rsa/gestione_statistica2.jsp">Miglior fornitore</a>
                    <a class="item2" href="rsa/gestione_statistica3.jsp">Fornitura su periodo</a>
                    <a class="item2" href="rsa/gestione_statistica4.jsp">Percentuale beni finanziati</a>
                </div> 
            </div>
        </td>
</table>
<p>&nbsp;</p>
<p>
  <script type="text/javascript">
    var ddmx = new DropDownMenuX('menu1');
    ddmx.delay.show = 0;
    ddmx.delay.hide = 400;
    ddmx.position.levelX.left = 2;
    ddmx.init();
</script>
</p>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td width="29%">&nbsp;</td>
    <td colspan="2"><h2><span class="style1">Benvenuto <%=user%> </span></h2></td>
    <td width="6%">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td width="19%"><h2><span class="style1"></span></h2></td>
    <td width="46%"><h2><span class="style1"></span></h2></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td style="width: 112px"><h2><span class="style1">Nome:</span></h2></td>
    <td><h2><span class="style1"><%=nome%></span></h2></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><h2><span class="style1">Cognome:</span></h2></td>
    <td><h2><span class="style1"><%=cogn%></span></h2></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><h2><span class="style1"></span></h2></td>
    <td><h2><span class="style1"></span></h2></td>
    <td>&nbsp;</td>
  </tr>
</table>

<form name="logout" action="../Logout" method="post" style="visibility:hidden;">
	<input type="submit" name="cmdOK" style="display:none"></input>
</form>
<form name="renumber" action="../renumber" method="post" style="visibility:hidden;">
	<input type="submit" name="cmdOK" style="display:none"></input>
</form>
 

</body>
</html>